from django.conf.urls import url
from apps.headline import views

urlpatterns = [
    url(r'^channels/$',views.ChannelsVIew.as_view()),
    url(r'^article/(?P<pk>(-1)|\d+)/channel/$',views.ArticleChannelVIew.as_view({'get':'list'})),
    url(r'^article/(?P<pk>(-1)|\d+)/$',views.ArticleChannelVIew.as_view({'get':'retrieve'})),
    url(r'^article/(?P<pk>\d+)/collect/$',views.ArticleCollectView.as_view()),
    url(r'^article/$',views.ArticleChannelVIew.as_view({'post':'create'})),

]


